/*
 * drv_uart.h
 *
 *  Created on: 2020年2月14日
 *      Author: LZ-LOVE
 */
#ifndef __DRV_UART_H__
#define __DRV_UART_H__
#ifdef __cplusplus
extern "C" {
#endif
#include "main.h"	
#include "os_types.h"
#include "rtthread.h"
/*debug 串口 */
#define BSP_USING_UART0
#define DEBUG_UART_NAME		("uart0")

#define BSP_USING_UART1
#define LCD_UART_NAME		("uart1")
#if defined(A5158_EDITION)

//#define BSP_USING_UART2
#define RS485_UART_NAME     ("uart2")

#define BSP_USING_UART4
#define METER_UART_NAME     ("uart4")

#define BSP_USING_UART5
#define ISO_15118_UART_NAME ("uart5")

#define BSP_USING_UART3
#define PCIE_UART_NAME      ("uart3")

#define BSP_USING_UART6
#define NFC_UART_NAME       ("uart6")

#define BSP_USING_UART7
#define WIFI_UART_NAME       ("uart7")

#else

#define BSP_USING_UART3
#define PCIE_UART_NAME      ("uart3")

#define BSP_USING_UART4
#define METER_UART_NAME     ("uart4")

#define BSP_USING_UART5
#define ISO_15118_UART_NAME ("uart5")

#define BSP_USING_UART6
#define NFC_UART_NAME       ("uart6")

#define BSP_USING_UART7
#define WIFI_UART_NAME      ("uart7")
#endif

int hw_uart_init(void);
void finsh_uart_reconfig(void);
void finsh_uart_clear(void);

#ifdef __cplusplus
}
#endif
#endif /* _DRV_UART_H_ */
